package com.sjd.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@NoArgsConstructor
//员工表
public class Employee {
    private Integer id;
    private String name;
    private String Emal;
    private Integer gender;//0女，1男
    private Department department;
    private Date birth;

    public Employee(Integer id, String name, String emal, Integer gender, Department department) {
        this.id = id;
        this.name = name;
        Emal = emal;
        this.gender = gender;
        this.department = department;
        //默认创建日期
        this.birth = new Date();
    }
}
